import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

//使用vuex
let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);

import store from '@/store';

const app = new Vue({
	store,
    ...App
})
//注册 uView 注册http拦截器
import httpInterceptor from "./common/http.interceptor.js"
Vue.use(httpInterceptor,app)
//注册集中式api管理
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)
//注册工具函数
import utils from "@/common/utils.js"
Vue.use(utils,app)
//挂载
app.$mount()
